const state = {
  stockList: [] // 库存列表
}

const mutations = {
  SET_STOCKLIST (state, dataList) {
    state.stockList = dataList
  }
}

const getters = {
  stockList: state => state.stockList
}
const actions = {
  // 设置商品库存列表
  setStockList ({commit}, dataList) {
    commit('SET_STOCKLIST', dataList)
  }
}

export default {
  state,
  mutations,
  getters,
  actions
}
